package com.example.studentdemo.service;

import com.example.studentdemo.entity.Student;
import com.example.studentdemo.entity.Account;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface StudentService {
    List<Student> selectAll(Student student);

    void add(Student student);

    void register(Student student);

    void update(Student student);

    PageInfo<Student> selectPage(Integer pageNum, Integer pageSize, Student student);

    void deleteById(Integer id);

    void deleteBatch(List<Student> studentList);

    Student selectById(Integer userId);

    Student login(Account account);

    void updatePassword(Account account);

    Student selectByUsername(String username);
}